﻿<Window x:Class="Controls.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="MainWindow" Height="350" Width="525">
    <Window.CommandBindings>
        <CommandBinding Command="Save"
        CanExecute="CommandBinding_CanExecute" Executed="CommandBinding_Executed_Save"/>
        <CommandBinding Command="Open"
        CanExecute="CommandBinding_CanExecute" Executed="CommandBinding_Executed_Open"/>
    </Window.CommandBindings>
    <TabControl>
        <TabItem Header="Ex1">
            <StackPanel>
                <TextBox x:Name="TextBoxMain" SelectionChanged="TextBox_SelectionChanged" Height="50">
                </TextBox>
                <TextBlock x:Name="TextBlock" Height="30">
                </TextBlock>
            </StackPanel>
        </TabItem>
        <TabItem Header="Ex2">
            <StackPanel>
                <Button Height="50" Content="Click Me" Click="Button_Click"/>
                <Label x:Name="LabelCounter"/>
            </StackPanel>
        </TabItem>
        <TabItem Header="Ex3">
            <StackPanel x:Name="StackPanelEx3">
                <TextBlock Text="Which one would you choose?"/>
                <RadioButton GroupName="question">Milk</RadioButton>
                <RadioButton GroupName="question">Suggar</RadioButton>
                <RadioButton GroupName="question">Coffe</RadioButton>
                <RadioButton GroupName="question">Cake</RadioButton>
                <CheckBox x:Name="CheckBoxMeals" Content="Fish">
                </CheckBox>

                <Button x:Name="ButtonSubmitRadio" Content="Show Which Radio is Clicked" Click="ButtonSubmitRadio_Click"/>

            </StackPanel>
        </TabItem>
        <TabItem Header="Ex4">
            <Grid>
                <ComboBox MinHeight="30" Width="250">
                    <ComboBoxItem>
                        <Ellipse Width="30" Height="20" Fill="Yellow"/>
                    </ComboBoxItem>
                    <ComboBoxItem>
                        <TextBlock>
                            Lol This is interesting feature.
                        </TextBlock>
                    </ComboBoxItem>
                    <ComboBoxItem>
                        <Image Source="super dvoika.png"/>
                    </ComboBoxItem>
                </ComboBox>
            </Grid>
        </TabItem>
        <TabItem Header="Ex5">
            <ListView>
                <ListView.View>
                    <GridView>
                        <GridViewColumn Header="ID" DisplayMemberBinding="{Binding Children[2]}">

                        </GridViewColumn>
                    </GridView>
                </ListView.View>
                <StackPanel x:Name="SPE">
                    <CheckBox Content="IAmCheckBox" x:Name="CheckBox"></CheckBox>
                    <CheckBox Content="IAmCheckBox2" x:Name="CheckBox2"></CheckBox>
                    <RadioButton GroupName="GroupEx5" Content="Option 1"/>
                    <RadioButton GroupName="GroupEx5" Content="Option 2"/>
                    <RadioButton GroupName="GroupEx5" Content="Option 3"/>
                    <RadioButton GroupName="GroupEx5" Content="Option 4"/>
                </StackPanel>
            </ListView>
        </TabItem>
        <TabItem Header="WordPad">
            <StackPanel>
                <Menu>
                    <MenuItem Header="_File">
                        <MenuItem Header="_Load" Command="Open"/>
                        <MenuItem Header="_Save" Command="Save"/>                       
                    </MenuItem>
                </Menu>
                <ComboBox Height="20">
                    <ComboBoxItem Selected="ComboBoxItem_Selected">     
                        <TextBlock>
                            Bold
                        </TextBlock>
                    </ComboBoxItem>
                </ComboBox>
                          
                <TextBox x:Name="TextBoxInput" AcceptsReturn="True" VerticalScrollBarVisibility="Auto" MaxHeight="260"/>

            </StackPanel>
        </TabItem>
    </TabControl>
</Window>
